package com.gyp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @xia
 * @date 2022-08-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_job_record")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SysJobRecord implements Serializable {

    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Integer id;

    private Integer userId;

    private String jobId;

    private String audioUrl;

    private Integer duration;

    private String remark;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @TableField("create_time")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @TableField("update_time")
    private LocalDateTime updateTime;


}
